package com.ruoyi.crm.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 线索管理对象 tb_clue
 *
 * @author ruoyi
 * @date 2022-06-07
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Clue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 线索id */
    private Long id;

    /** 客户姓名 */
    @Excel(name = "客户姓名")
    private String name;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 渠道 */
    @Excel(name = "渠道")
    private String channel;

    /** 活动id */
    @Excel(name = "活动id")
    private Long activityId;

    /** 1 男 0 女 */
    @Excel(name = "1 男 0 女")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private Long age;

    /** 微信 */
    @Excel(name = "微信")
    private String weixin;

    /** qq */
    @Excel(name = "qq")
    private String qq;

    /** 意向等级 */
    @Excel(name = "意向等级")
    private String level;

    /** 意向学科 */
    @Excel(name = "意向学科")
    private String subject;

    /** 状态(已分配1  进行中2  回收3  伪线索4) */
    @Excel(name = "状态(已分配1  进行中2  回收3  伪线索4)")
    private String status;

    /** 伪线索失败次数(最大数3次) */
    @Excel(name = "伪线索失败次数(最大数3次)")
    private Integer falseCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date nextTime;

    /** 是否转派 */
    @Excel(name = "是否转派")
    private String transfer;

    /** 线索失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "线索失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;

    private String userName;

    private String beginCreateTime;

    private String endCreateTime;
}
